-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Detach tty #302
base: master
Are you sure you want to change the base?
WIP Detach tty #302
Conversation
kano_updater/utils.py
Outdated
Detach from controlling tty | ||
""" | ||
try: | ||
myTTY = os.open("/dev/tty",os.O_RDWR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be broadly better if queried dynamically? To support docker interactive builds.
kanux@minos:~$ peldins-jessie
Started container: peldins-jessie with command: 'bash'
update-binfmts: warning: qemu-arm already enabled in kernel.
kanux@4f73998cc87b:~/peldins-jessie$ tty
/dev/pts/12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/dev/tty
is a magic file which represents the tty attached to the current process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enlightning... 👍
@Ealdwulf I've manually added your changes on top of the current |
7ec798f
to
9cbd4a7
Compare
d85541f
to
cc8cf39
Compare
Before I forget, I think this could make the updater slightly more immune to packages asking interactive questions.
NOT proposing to merge for this rc, we've done enough to the updater already.
This PR: